<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=0" />
    <link href="/fontello.css" rel="stylesheet" />
    <script type="module" src="/src/index.ts"></script>
  </head>
  <body>
    <style class="removeAtBoot">@media (prefers-color-scheme: dark) { html { background-color: #000; color: #888; } }</style>
    <div id="root">Wait for loading or <a href="?get=basic">use basic interface now</a></div>
    <script>
      function isModernBrowser() { // support BigInt
        const ua = navigator.userAgent
        return /Chrome\/(\d+)/.exec(ua)?.[1] >= 67 ||
                /Edg\/(\d+)/.exec(ua)?.[1] >= 79 ||
                /Firefox\/(\d+)/.exec(ua)?.[1] >= 68 ||
                /OPR\/(\d+)/.exec(ua)?.[1] >= 54 ||
                /Version\/(\d+).+Safari/.exec(ua)?.[1] >= 14
      }
      if (isModernBrowser())
        document.getElementById('root').innerHTML = 'Loading...'
    </script>
  </body>
</html>
